import { h } from '@logicflow/core';
import BaseNode from "./BaseNode";
import {execIcon} from "../icons"
class ExecNode extends BaseNode.view {
  getIcon() {
    const {width, height, properties,} = this.props.model;
    return h('image', {
      width: 30,
      height: 30,
      x: - width / 2,
      y: - height / 2,
      href: execIcon,
    })
  }
}

class ExecNodeModel extends BaseNode.model {
  getNodeStyle() {
    const style = super.getNodeStyle()
    style.fill = 'rgb(230, 224, 248)';
    return style
  }
}

export default {
  type: 'ExecNode',
  model: ExecNodeModel,
  view: ExecNode
}
